package entity;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import java.util.Map;
@XStreamAlias("xml")
public class TextMessage extends BaseMessage{
    @XStreamAlias("Content")
    private String connent;

    public String getConnent() {
        return connent;
    }

    public void setConnent(String connent) {
        this.connent = connent;
    }

    public TextMessage(Map<String,String> requestMap,String connent) {
        super(requestMap);
        this.setMsgType("text");
        this.connent=connent;
    }

    @Override
    public String toString() {
        return "TextMessage{content=" +"" +connent+",getToUserName="+getToUserName()+",getFromUserName()="+getFromUserName()+",getCreateTime="+getCreateTime()+"}";
    }
}
